const path = require("path");
function resolve(dir) {
  return path.join(__dirname, dir);
}
module.exports = {
  publicPath: "/"
  , productionSourceMap: process.env.NODE_ENV == "development"
  , lintOnSave: process.env.NODE_ENV !== 'production'
  , outputDir: "dist"
  , chainWebpack: config => {
    config.resolve.alias
      .set("views", resolve("src/views"))
      .set("components", resolve("src/components"))
      .set("assets", resolve("src/assets"));
  }
}